package com.cn.wanxi.service;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;

/**
 * 公司模塊的服务逻辑层封装公司信息
 */
public class CompanyService {
    /**
     * 首页需要的公司信息
     *
     * @return
     */
    public CompanyModel getCompanyModel() {
        CompanyModel companyModel = new CompanyModel();
//        CompanyDao companyDao=new CompanyDao();
        companyModel.setLogo(CompanyDao.LOGO);
        companyModel.setPhone(CompanyDao.PHONE);
        companyModel.setNet(CompanyDao.NET);
        companyModel.setEmail(CompanyDao.EMAIL);
        companyModel.setAddress(CompanyDao.ADDRESS);
        companyModel.setLinePhone(CompanyDao.LINE_PHONE);
        companyModel.setVersion(CompanyDao.VERSION);
        return companyModel;
    }
}
